package ebj.common.reflection;

import ebj.common.domain.Demo;


/**
 * 反射实例1：实例化Class类对象
 * @author zhouxiangyong
 * @version $Id$
 */
public class ReflectClient1 {
	public static void main(String[] args) {
		Class<?> clazz1 = null;
		Class<?> clazz2 = null;
		Class<?> clazz3 = null;
		
		try {
			clazz1 = Class.forName("ebj.common.App");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		
		clazz2 = (new Demo()).getClass();
		clazz3 = Demo.class;
		
		System.out.println("规范名称/标准类名：" + clazz1.getCanonicalName());
		System.out.println("(默认)类名：" + clazz1.getName());
		
		System.out.println(clazz2.getName());
		System.out.println(clazz3.getName());
	}
}
